// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   PatrocinanteForm.java

package org.fiel.admin.struts.forms;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public final class PatrocinanteForm extends ActionForm
{

    public PatrocinanteForm()
    {
        patrocinante = null;
        id = null;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request)
    {
        patrocinante = null;
        id = null;
    }

    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
    {
        ActionErrors errors = new ActionErrors();
        if(patrocinante == null || patrocinante.length() < 1)
            errors.add("patrocinante", new ActionError("error.patrocinante.requerido"));
        return errors;
    }

    public String getId()
    {
        return id;
    }

    public String getPatrocinante()
    {
        return patrocinante;
    }

    public void setId(String string)
    {
        id = string;
    }

    public void setPatrocinante(String string)
    {
        patrocinante = string;
    }

    private String patrocinante;
    private String id;
}
